// bsp4.cpp : Defines the entry point for the console application.
//

#include "stdafx.h"
#include <stdio.h>
#include <math.h>
#include <limits.h>

const double PHI = 1.61803399;

int main(int argc, char* argv[])
{
	long n = ceil((999+log10((double)5)/2)/log10(PHI));

	printf("%ld\n", n);
	getchar();
}

